import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Injectable({
  providedIn: 'root',
})
export class ProblemService {
  baseUrl = 'pets/problem';
  constructor(private http: _HttpClient) {}

  page(params: {}) {
    return this.http.get(this.baseUrl + '/page', params);
  }

  submit(postData: {}) {
    return this.http.post(this.baseUrl + '/submit', postData);
  }

  remove(id: string) {
    return this.http.post(this.baseUrl + '/delete?id=' + id);
  }
}
